<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="<%=basePath%>/style/style.css" rel="stylesheet"
	type="text/css">
<script type="text/javascript">
var doAdd =function(){

window.location.href="addNotice.do";
}
</script>
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css"><script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<link href="style/jBox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jBox-1.1.js"></script>
<div class="rightCon" align="center">
	<div class="rightTitle" align="left">
		<h3>
			<s:property value="nav" escape="false"/>
		</h3>
	</div>
	<table class="listTable">
		<tr class="listTitle">
			<td width="6%">
				序号
			</td>
			<td width="49%">
				公告标题
			</td>
			<td width="15%">
				发布人
			</td>
			<td width="10%">
				发布日期
			</td>
			<td width="10%">
				查看次数
			</td>
			<td align="center" width="10%">
				操作
			</td>
		</tr>
		<s:iterator id="notice" value="%{noticelist}" status="stuts">
			<tr class="listTr">
				<td>
					<s:property value="#stuts.count" />
				</td>
				<td>
					<a href="lookNotice.do?id=<s:property value="#notice.id"/>"
						title="<s:property value="#notice.title" />"> <s:if
							test="#notice.title.length()>30">
							<s:property value="#notice.title.substring(0,30)" />...
								</s:if> <s:else>
							<s:property value="#notice.title" />
						</s:else> </a>
				</td>
				<td>
					<s:property value="#notice.releaser" />
				</td>
				<td>
					<s:property value="#notice.releasedate" />
				</td>
				<td>
					<s:property value="#notice.times" />
				</td>
				<td class="add">
					
					<a href="lookNotice.do?id=<s:property value="#notice.id"/>"><img src="images/btn/look.gif" alt="查看"/></a>
					
					<a
						href="updateNotice.do?id=<s:property value="#notice.id" />&pageno=<s:property value='pageno'/>"><img src="images/system/edit.gif" alt="修改"/></a>
					
					<a
						href="javascript:if(confirm('您真的要删除吗?点击确认进行删除！否则请点取消'))window.location='deleteNotice.do?id=<s:property value="#notice.id" />&pageno=<s:property value='pageno'/>'"><img src="images/system/delete.gif" alt="删除"/></a>
				</td>
			</tr>
		</s:iterator>
	</table>
	<table width="92%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="52%" height="38">
				<a href="addNotice.do" class="search button01">添加</a>
				<a
					onclick="jBox.open('div-jBoxID','div','search1','按条件查询','width=700,height=160,center=true,minimizable=true,resize=false,draggable=true,model=false');"
					href="javascript://" class="search button01">查询</a>
			</td>
			<td width="48%" align="right">
				<span style="text-align: center">${pageStr}</span>
			</td>
		</tr>
	</table>
</div>
<div id="search1" style="display: none">
	<form method="post" action="noticeList.do">
		<table width="97%" border="0" align="center" cellpadding="5"
			cellspacing="0">
			<tr>
				<td height="60" valign="top">
					<table width="98%" border="0" align="center" cellpadding="1"
						cellspacing="1">
						<tr>
							<td width="20%" align="center">
								公告标题：
							</td>
							<td>
								<input type="text" name="bean.title" title="公告标题" id="title" />
							</td>
							<td width="20%" align="center">
								公告发布人：
							</td>
							<td width="30%" align="center">
								<input type="text" name="bean.releaser" title="公告发布人"
									id="releaser" />
						</tr>
						<tr>
							<td width="30%" align="center" colspan="4">
									<input class="buttonSearch"  id="button2" type="submit" value="搜索" />
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input class="buttonSearch"  id="button2" type="reset" value="重置" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</div>

